package com.computer;

public class MainBoard implements MB{
    private String name ;
    private  RAM ram ;
    private  CPU cpu;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public RAM getRam() {
        return ram;
    }

    public void setRam(RAM ram) {
        this.ram = ram;
    }

    public CPU getCpu() {
        return cpu;
    }

    public void setCpu(CPU cpu) {
        this.cpu = cpu;
    }

    @Override
    public String getMainBoard(){
        return "主板名称："+name+";\nCPU名称："+cpu.getName()+";\n内存名称："+ram.getName();
    }

}
